package pojo;

public class Student {
    private Integer sid;
    private String sName;
    private Integer sAge;
    private Teacher teacher;

    public Student() {
    }
    @Override
    public String toString() {
        return "Student{" +
                "sid=" + sid +
                ", sName='" + sName + '\'' +
                ", sAge=" + sAge +
                ", teacher=" + teacher +
                '}';
    }

    public Student(Integer sid, String sName, Integer sAge, Teacher teacher) {
        this.sid = sid;
        this.sName = sName;
        this.sAge = sAge;
        this.teacher = teacher;
    }

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public String getsName() {
        return sName;
    }

    public void setsName(String sName) {
        this.sName = sName;
    }

    public Integer getsAge() {
        return sAge;
    }

    public void setsAge(Integer sAge) {
        this.sAge = sAge;
    }

    public Teacher getTeacher() {
        return teacher;
    }

    public void setTeacher(Teacher teacher) {
        this.teacher = teacher;
    }
}
